package com.pxx.pj.common.util;

import com.pxx.pj.pxx.pojo.PxxUser;
import org.apache.shiro.SecurityUtils;

public class ShiroUtils {
    public static String getUsername() {
        return getUser().getUsername();
    }
    public static PxxUser getUser() {
        return  (PxxUser)
                SecurityUtils.getSubject().getPrincipal();
    }
}

